﻿using System;
using fastCSharp;

namespace diantou.web.user
{
    /// <summary>
    /// @提到用户
    /// </summary>
    [fastCSharp.code.cSharp.webView(IsPool = true, IsReferer = false)]
    partial class mention : view<mention>
    {
        /// <summary>
        /// 
        /// </summary>
        [fastCSharp.emit.webView.clearMember]
        private diantou.dataAccess.notice[] mentions;
        /// <summary>
        /// 
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="page"></param>
        /// <returns></returns>
        private bool loadView(int userId, int page)
        {
            if (base.loadView(userId))
            {
                mentions = diantou.dataAccess.tcpCall.notice.mentionUser(userId, pageInfo.Size = fastCSharp.config.pub.Default.PageSize, pageInfo.Page = page, currentUserId, currentUser != null && currentUser.IsChangeVisit, out pageInfo.Count);
                if (requestHeader.IsSearchEngine) pageInfo.Path = user.Path.UserMention.ToPageString();
                return true;
            }
            return false;
        }
    }
}
